/* === 阵营布局 === */
.match-management {
  width: 100%;
  height: calc(100vh - 150px); /* 减去顶部导航和header的高度 */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 防止内部溢出 */
}

.factions-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  height: 100%;
  padding: 10px;
}

/* 统一阵营A和B的样式 */
.faction-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%; /* 使用100%而不是min-height */
  background-color: #f5f7fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden; /* 防止内部内容溢出 */
}

/* 统一阵营header样式 */
.faction-header {
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #4ca5ff;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 阵营A header特定颜色 */
.faction-column:nth-child(1) .faction-header {
  color: var(--faction-a-color);
  background-color: rgb(255, 115, 0);
}

/* 阵营B header特定颜色 */
.faction-column:nth-child(2) .faction-header {
  color: var(--faction-b-color);
  background-color: rgb(0, 183, 255);
}

/* 调整内容区域 */
.squads-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box; /* 确保padding包含在高度计算内 */
}
.squads-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-content: flex-start;
  padding-right: 5px; /* 增加右边距避免内容被截断 */
}

.unassigned-section {
  padding: 10px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
}
